Template:ModelVersionTemplate: Difference between revisions
Jump to navigation
Jump to search
Oostenrijr (talk | contribs) No edit summary |
Oostenrijr (talk | contribs) No edit summary |
||
| Line 14: | Line 14: | ||
Version description: {{{hasDescription|}}} | Version description: {{{hasDescription|}}} | ||
<!-- If there is a previous version, check whether the IsCurrenVersion of that previous version is false--> | |||
previous version has boolean value {{#ask:{{{hasPrevVersion|}}}|?IsCurrentVersion}} for current version | |||
{{#if:{{{hasPrevVersion|}}}|| | |||
|{{#if:{{{hasNamespace|}}} | |||
|main | |||
|{{#if:{{#ask:{{{hasPrevVersion|}}}|? IsCurrentVersion}} | |||
|1 | |||
|Previous version and this version both has a 'is current version' = true. Please set {{{hasPrevVersion|}}} to false! | |||
| | |||
}} | |||
| | |||
}} | |||
}} | |||
See components: | See components: | ||
| Line 19: | Line 34: | ||
|format=ul }} | |format=ul }} | ||
{{#if:{{{hasNamespace|}}}|main|{{#set:IsCurrentVersion=1}}|{{#set:IsCurrentVersion= | {{#if:{{{hasNamespace|}}}|main|{{#set:IsCurrentVersion=1}}|{{#set:IsCurrentVersion=0}} }} | ||
{{#set:HasDescription={{{hasDescription| | {{#set:HasDescription={{{hasDescription|}}} | ||
| HasNamespace={{{hasNamespace|}}} | |||
| IsVersionOf={{{isVersionOf|}}} | |||
}} | |||
[[Category:ModelVersion]] | [[Category:ModelVersion]] | ||
</includeonly> | </includeonly> | ||
Revision as of 14:03, 6 May 2016
This is the "ModelVersionTemplate" template. It should be called in the following format:
{{ModelVersionTemplate
|hasDescription=
|hasNamespace=
|isVersionOf=
}}
Edit the page to see the template text.