Help:Editing/Readability: Difference between revisions

WikiAdmin (talk | contribs)
created
 
WikiAdmin (talk | contribs)
 
(One intermediate revision by the same user not shown)
Line 6: Line 6:
The IntactiWiki source code interpreter understands template data in various notations, such as: all parameters in one line, leading or missing blanks for parameters, etc. But the human eye likes a more splendid layout. Here's a bad and a good example for how to write templates:
The IntactiWiki source code interpreter understands template data in various notations, such as: all parameters in one line, leading or missing blanks for parameters, etc. But the human eye likes a more splendid layout. Here's a bad and a good example for how to write templates:


Bad:
Bad:
<pre>{{REFweb|url=https://www.mediawiki.org/wiki/MediaWiki|title=MediaWiki|accessdate=2019-09-25}}</pre>
<pre>{{REFweb|url=https://www.mediawiki.org/wiki/MediaWiki|title=MediaWiki|accessdate=2019-09-25}}</pre>


Good:
Good:
<pre>{{REFweb
<pre>{{REFweb
  |url=https://www.mediawiki.org/wiki/MediaWiki
  |url=https://www.mediawiki.org/wiki/MediaWiki
Line 19: Line 19:
Various IntactiWiki article sections can be created by using templates, like '''<nowiki>{{PUB}}</nowiki>''', '''<nowiki>{{SEEALSO}}</nowiki>''', '''<nowiki>{{LINKS}}</nowiki>''', '''<nowiki>{{REF}}</nowiki>''', etc. The relevant templates have been build in a way that the source text interpreter doesn't require leading blank lines for the templates to work properly. But it helps the human eye to see the structure of an article.
Various IntactiWiki article sections can be created by using templates, like '''<nowiki>{{PUB}}</nowiki>''', '''<nowiki>{{SEEALSO}}</nowiki>''', '''<nowiki>{{LINKS}}</nowiki>''', '''<nowiki>{{REF}}</nowiki>''', etc. The relevant templates have been build in a way that the source text interpreter doesn't require leading blank lines for the templates to work properly. But it helps the human eye to see the structure of an article.


Bad:
Bad:
<pre>{{PUB}}* some content{SEEALSO}}*some seealso links{{LINKS}}* some external links{{REF}}</pre>
<pre>{{PUB}}* some content{SEEALSO}}*some seealso links{{LINKS}}* some external links{{REF}}</pre>


Good:
Good:
<pre>{{PUB}}
<pre>{{PUB}}
* some content
* some content