Difference between revisions of "User:Alec/BookTemplate/ReferenceTemplate"
From Maths
< User:Alec | BookTemplate
m (Added content tag) |
m (Cleaning up output format) |
||
(5 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
− | {{#if:{{{ | + | {{#if:{{{refName|k}}}<!-- |
− | + | refName is defined: | |
− | -->|{{#if:{{{ | + | -->|{{#if:{{{refGroup|}}}<!-- |
− | + | refGroup is defined | |
− | -->|{{#tag:ref| | + | -->|{{#tag:ref|refName defined: {{{refName|}}}<br/>refGroup defined: {{{refGroup|}}}<br/>Content:<hr/>{{{content|''(no content)''}}}|group={{{refGroup}}}|name={{{refName}}}}}<!-- |
− | + | refGroup isn't defined | |
− | -->|{{#tag:ref| | + | -->|{{#tag:ref|{{{content|{{Template error|msg=No content for reference!}}}}}|name={{{refName}}}}}<!-- |
− | End of "if | + | End of "if refGroup" defined |
-->}}<!-- | -->}}<!-- | ||
− | + | refName isn't defined | |
− | -->| | + | -->|{{#if:{{{refGroup|}}}<!-- |
+ | If refGroup is defined | ||
+ | -->|<span style="font-size:1.2em;color:#FF0000;">Anonymous references with groups are not supported yet! (Is there any point?)</span><!-- | ||
+ | |||
+ | If refGroup is not defined | ||
+ | -->|{{#tag:ref|(Anonymous ref tag)<br/>Content:<hr/>{{{content|''(no content)''}}}}}<!-- | ||
+ | End of if refGroup | ||
+ | -->}}<!-- | ||
END OF: if RefName | END OF: if RefName |
Latest revision as of 21:34, 30 July 2016
References
- ↑ No content for reference!