Template:ListModifications: Difference between revisions
Jump to navigation
Jump to search
(Created page with "<noinclude>__NOTOC__ {|cellpadding="10" cellspacing="0" border="1" style="border-style: solid; border-color: #F00" | ==Template Example== This template has been set-up to prod...") |
No edit summary |
||
Line 3: | Line 3: | ||
| | | | ||
==Template Example== | ==Template Example== | ||
This template has been set-up to | This template has been set-up to allow users to define the details of a modification event which occurred in relation to the thing being discussed on a given page. | ||
As an example on the [[NG1: | As an example on the [[NG1: Support]] page this template could be used multiple times to identify each change that was made to the support structure of [[NG1]]: | ||
=== Example Code Options === | === Example Code Options === | ||
<pre> | <pre> | ||
{{ | {{Modification | ||
| | |name=Add an optional comma separated list of people involved | ||
in the event. | |||
| | |technique=Add an optional comma separated list of techniques | ||
used during the event. | |||
|date=Indicate the date, or time span with which this event | |||
| | took place. | ||
|dateTo=Optional second date to indicate the end of a range | |||
of years. | |||
|display=Display each entry. The default will be to hide all of the | |||
individual entries but then display a list using an inline query. | |||
|note=Free text description of the actual modification event | |||
including all of the required details. | |||
|rtSupport=true or false, Modification is related to the | |||
support | |||
|rtPrep=true or false, Modification is related to the | |||
preparation layers | |||
|rtPaint=true or false, Modification is related to the | |||
paint layers | |||
|rtSurface=true or false, Modification is related to the | |||
surface coatings | |||
}} | |||
</pre> | |||
In addition to displaying the details entered the following internal semantic object will also be created with the defined semantic properties. | |||
<pre> | |||
{{#set_internal:P31F-has_modified | |||
|P14F-carried out by#list={{{name|}}} | |||
|P32F-used general technique#list={{{technique|}}} | |||
|PN12F-has start date={{{date|}}} | |||
|PN13F-has end date={{{dateTo|}}} | |||
|P3F-has_note={{{note|}}} | |||
|PN15F-is_related_to={{#ifeq: | |||
{{{rtSupport|}}}| Yes |Category:EN13-Support|}} | |||
|PN15F-is_related_to={{#ifeq: | |||
{{{rtPrep|}}}| Yes |Category:EN48-Preparation_Layers|}} | |||
|PN15F-is_related_to={{#ifeq: | |||
{{{rtPaint|}}}| Yes |Category:EN46-Paint_Layers|}} | |||
|PN15F-is_related_to={{#ifeq: | |||
{{{rtSurface|}}}| Yes |Category:EN47-Surface_Coatings|}} | |||
}} | }} | ||
</pre> | </pre> | ||
Line 21: | Line 52: | ||
=== Example Code === | === Example Code === | ||
<pre> | <pre> | ||
{{ | {{Modification | ||
| | |name=Joseph Padfield | ||
| | |technique=Edited | ||
| | |date=2011 | ||
|dateTo=2012 | |||
|display=yes | |||
|note=I created then edited this particular template. | |||
}} | }} | ||
</pre> | </pre> | ||
|- | |- | ||
|{{ | | | ||
| | * '''2011-2012''': I created then edited this particular template. (Joseph Padfield) | ||
| | <!---{{Modification | ||
| | |name=Joseph Padfield | ||
}} | |technique=Edited | ||
|date=2011 | |||
|dateTo=2012 | |||
|display=yes | |||
|note=I created then edited this particular template. | |||
}}---> | |||
|} | |} | ||
</noinclude> | </noinclude> | ||
<includeonly><nowiki/>{{# | <includeonly><nowiki/>{{#if: {{{display|}}}|* '''{{{date|Please enter date or date range}}}{{#if: {{{dateTo|}}}|-{{{dateTo|}}}|}}''': {{{note|}}} {{#if: {{{name|}}}|({{{name|}}})| }}|}}{{#set_internal:P31F-has_modified | ||
|P14F-carried out by#list={{{name|}}} | |||
|P32F-used general technique#list={{{technique|}}} | |||
|PN12F-has start date={{{date|}}} | |||
|PN13F-has end date={{#if: {{{dateTo|}}}|{{{dateTo|}}}|{{{date|}}}}} | |||
|P3F-has_note={{{note|}}} | |||
|PN15F-is_related_to={{#ifeq: {{{rtSupport|}}}| Yes |Category:EN13-Support|}} | |||
|PN15F-is_related_to={{#ifeq: {{{rtPrep|}}}| Yes |Category:EN48-Preparation_Layers|}} | |||
|PN15F-is_related_to={{#ifeq: {{{rtPaint|}}}| Yes |Category:EN46-Paint_Layers|}} | |||
|PN15F-is_related_to={{#ifeq: {{{rtSurface|}}}| Yes |Category:EN47-Surface_Coatings|}} | |||
}}</includeonly> | }}</includeonly> |
Latest revision as of 14:24, 1 August 2012
Template ExampleThis template has been set-up to allow users to define the details of a modification event which occurred in relation to the thing being discussed on a given page. As an example on the NG1: Support page this template could be used multiple times to identify each change that was made to the support structure of NG1: Example Code Options{{Modification |name=Add an optional comma separated list of people involved in the event. |technique=Add an optional comma separated list of techniques used during the event. |date=Indicate the date, or time span with which this event took place. |dateTo=Optional second date to indicate the end of a range of years. |display=Display each entry. The default will be to hide all of the individual entries but then display a list using an inline query. |note=Free text description of the actual modification event including all of the required details. |rtSupport=true or false, Modification is related to the support |rtPrep=true or false, Modification is related to the preparation layers |rtPaint=true or false, Modification is related to the paint layers |rtSurface=true or false, Modification is related to the surface coatings }} In addition to displaying the details entered the following internal semantic object will also be created with the defined semantic properties. {{#set_internal:P31F-has_modified |P14F-carried out by#list={{{name|}}} |P32F-used general technique#list={{{technique|}}} |PN12F-has start date={{{date|}}} |PN13F-has end date={{{dateTo|}}} |P3F-has_note={{{note|}}} |PN15F-is_related_to={{#ifeq: {{{rtSupport|}}}| Yes |Category:EN13-Support|}} |PN15F-is_related_to={{#ifeq: {{{rtPrep|}}}| Yes |Category:EN48-Preparation_Layers|}} |PN15F-is_related_to={{#ifeq: {{{rtPaint|}}}| Yes |Category:EN46-Paint_Layers|}} |PN15F-is_related_to={{#ifeq: {{{rtSurface|}}}| Yes |Category:EN47-Surface_Coatings|}} }} Example Code{{Modification |name=Joseph Padfield |technique=Edited |date=2011 |dateTo=2012 |display=yes |note=I created then edited this particular template. }} |
|