v50 Steam/Premium information for editors
  • v50 information can now be added to pages in the main namespace. v0.47 information can still be found in the DF2014 namespace. See here for more details on the new versioning policy.
  • Use this page to report any issues related to the migration.
This notice may be cached—the current version can be found here.

Difference between revisions of "Template:DFtext/doc"

From Dwarf Fortress Wiki
Jump to navigation Jump to search
Line 2: Line 2:
  
 
<code><nowiki>{{DFtext|Outside}}</nowiki></code> turns into {{DFtext|Outside}}.<br><code><nowiki>{{DFtext|Outside|3:1}}</nowiki></code> turns into {{DFtext|Outside|3:1}}<br><code><nowiki>{{DFtext|Outside|3:1:1}}</nowiki></code> turns into {{DFtext|Outside|3:1:1}}.
 
<code><nowiki>{{DFtext|Outside}}</nowiki></code> turns into {{DFtext|Outside}}.<br><code><nowiki>{{DFtext|Outside|3:1}}</nowiki></code> turns into {{DFtext|Outside|3:1}}<br><code><nowiki>{{DFtext|Outside|3:1:1}}</nowiki></code> turns into {{DFtext|Outside|3:1:1}}.
 +
 +
 +
Alternatively, there is another, more complex format you can use to achieve the same text formatting. This is only helpful if this template doesn't provide a text (or highlight) color that's in the game. A CSS span style syntax can be used:
 +
<pre><span style="font-family:IBM Plex Mono Medium; font-size:12.5px; background-color:#000; color:#91caff;">*TEXT GOES HERE*</span></pre>
 +
The example would provide the following: <span style="font-family:IBM Plex Mono Medium; font-size:12.5px; background-color:#000; color:#91caff;">*TEXT GOES HERE*</span>
 +
 +
This should only be a last resort, as this is a lot of text that can muddle up the flow of editing a page, therefore possibly adding more editing difficulty for other editors. Also, if there is a text color in the game that's very similar to a color this template can provide, it may be best to just use the next closest color from this template.
  
 
<includeonly>[[Category:Inline formatting templates]]</includeonly>
 
<includeonly>[[Category:Inline formatting templates]]</includeonly>

Revision as of 10:30, 19 August 2019

The DFtext template is designed to provide generally short preformatted text that resembles that of the game.

{{DFtext|Outside}} turns into Outside.
{{DFtext|Outside|3:1}} turns into Outside
{{DFtext|Outside|3:1:1}} turns into Outside.


Alternatively, there is another, more complex format you can use to achieve the same text formatting. This is only helpful if this template doesn't provide a text (or highlight) color that's in the game. A CSS span style syntax can be used:

<span style="font-family:IBM Plex Mono Medium; font-size:12.5px; background-color:#000; color:#91caff;">*TEXT GOES HERE*</span>

The example would provide the following: *TEXT GOES HERE*

This should only be a last resort, as this is a lot of text that can muddle up the flow of editing a page, therefore possibly adding more editing difficulty for other editors. Also, if there is a text color in the game that's very similar to a color this template can provide, it may be best to just use the next closest color from this template.

Values

Value Background Text
0              Test 
1              Test 
2              Test 
3              Test 
4              Test 
5              Test 
6              Test 
7              Test 
8+              Test