Difference between revisions of "Template:CelestialRef/ExtraSep"

From blackwiki
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: extrasepparam="{{{extrasepparam}}}", radio="{{{radio}}}", newline="{{{newline}}}"
+
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 extrasepparam, used to create new line or other
+
* 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.
* extrasepparam overrides radio and radio overrides newline
+
* 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:
 
".
 
".
Links:"
+
:"
  
-->{{#ifeq:{{{extrasepparam|}}}||<!--  
+
-->{{#ifeq:{{{extrasep|}}}||<!--  
  
* Case extrasepparam blank
+
* Case extrasepblank
  
 
* check radio= and newline=
 
* check radio= and newline=
 
--->{{#ifeq:{{{radio|}}}|yes|<!--  
 
--->{{#ifeq:{{{radio|}}}|yes|<!--  
 +
 +
* radio
 
---->.
 
---->.
:* Links:<!--  
+
:* <!--  
 
   
 
   
 
* case radio!=yes
 
* case radio!=yes
 
---->|{{#ifeq:{{{newline|yes}}}|yes|<!--  
 
---->|{{#ifeq:{{{newline|yes}}}|yes|<!--  
 +
 +
* newline
 
----->.
 
----->.
: Links:<!--  
+
: <!--  
  
 
* case newline!=yes and radio!=yes
 
* case newline!=yes and radio!=yes
* and extrasepparam not set
+
* and extrasep not set
 
----->|<!--  
 
----->|<!--  
 
---->}}<!-- ends newline?
 
---->}}<!-- ends newline?
 
--->}}<!--  ends radio?
 
--->}}<!--  ends radio?
  
* case extrasepparam set
+
* case extrasep set
--->|{{{extrasepparam}}}<!--  
+
--->|{{{extrasep}}}<!--  
 
-->}}<!--  ends extrasep?
 
-->}}<!--  ends extrasep?
 
-->
 
-->

Latest revision as of 05:58, 24 July 2013

.