Difference between revisions of "Template:CelestialRef/ExtraSep"
Jump to navigation
Jump to search
imported>Robertinventor |
imported>Robertinventor (last few edits: Removed the Links: not needed for new coding of Extras leaves out first dash in line) |
||
| (3 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
<!-- | <!-- | ||
| − | diagnostics: | + | diagnostics: extrasep="{{{extrasep}}}", radio="{{{radio}}}", newline="{{{newline}}}" |
* Done as separate template so doesn't have to be inlined twice | * Done as separate template so doesn't have to be inlined twice | ||
* and for easy independent editing and testing | * and for easy independent editing and testing | ||
| − | * Check for | + | * Check for extrasep, used to create new line or other |
* content before the extras such as bibliography, ids etc. | * content before the extras such as bibliography, ids etc. | ||
| − | * | + | * extrasep overrides radio and radio overrides newline |
* However, newline defaults to yes. So if no parameters set | * However, newline defaults to yes. So if no parameters set | ||
| Line 14: | Line 14: | ||
Default of newline outputs: | Default of newline outputs: | ||
". | ". | ||
| − | + | :" | |
| − | -->{{#ifeq:{{{ | + | -->{{#ifeq:{{{extrasep|}}}||<!-- |
| − | * Case | + | * Case extrasepblank |
* check radio= and newline= | * check radio= and newline= | ||
--->{{#ifeq:{{{radio|}}}|yes|<!-- | --->{{#ifeq:{{{radio|}}}|yes|<!-- | ||
| + | |||
| + | * radio | ||
---->. | ---->. | ||
| − | :* | + | :* <!-- |
* case radio!=yes | * case radio!=yes | ||
---->|{{#ifeq:{{{newline|yes}}}|yes|<!-- | ---->|{{#ifeq:{{{newline|yes}}}|yes|<!-- | ||
| + | |||
| + | * newline | ||
----->. | ----->. | ||
| − | + | : <!-- | |
* case newline!=yes and radio!=yes | * case newline!=yes and radio!=yes | ||
| − | * and | + | * and extrasep not set |
----->|<!-- | ----->|<!-- | ||
---->}}<!-- ends newline? | ---->}}<!-- ends newline? | ||
--->}}<!-- ends radio? | --->}}<!-- ends radio? | ||
| − | * case | + | * case extrasep set |
| − | --->|{{{ | + | --->|{{{extrasep}}}<!-- |
-->}}<!-- ends extrasep? | -->}}<!-- ends extrasep? | ||
--> | --> | ||
Latest revision as of 05:58, 24 July 2013
.