Editing Text Replacement

Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.

Latest revision Your text
Line 1: Line 1:
{{Template:Incomplete Article}}
[[Category:User Interface]]
The '''Text Replacement''' game system parses value tokens and formatting tags. This is used on a several forms like [[Book]]s and [[Terminal]]s.
The '''Text Replacement''' game system parses value tokens and formatting tags. This is used on a several forms like [[Book]]s and [[Terminal]]s.


==Tokens==
==Book Text==
Quest-associated books can contain tokens used for '''Text Replacement''' if you add a book alias to the quest and set "Uses Stored Text" flag on this alias.
The [[Book]] text field can be formatted with a variety of '''markup''' tags.
Quest-associated books can contain additional tags used for '''Text Replacement'''.
To associate book with the quest you need to add book alias to the quest and set "Uses Stored Text" flag on this alias.


==Markup==
==Markup==
Some text fields support a variety of '''Markup''' tags used with formatting.
===Example===
<source lang="text">
<!--This is the example for text markup-->
<font face='$HandwrittenFont' size='35'>Hello World!</font>
<b><i><u>This is bold, italic, and underlined.</u></i></b>
<BR>These are some colors I like.
<ul>
<li>Black</li>
<li>White</li>
<li>Red</li>
<li>Green</li>
<li>Blue</li>
</ul></nowiki>
[pagebreak]
<!--A new page has starts here-->
<p align='center'>My center aligned text.
<p align='left'>My left aligned text.
</source>
===Syntax===
* '''Comment Tag'''  
* '''Comment Tag'''  
** Tag: <code>&lt;!--Comment text--&gt;</code>
** Tag: <code>&lt;!--Comment text--&gt;</code>
** Description: Comments tell the renderer not display the text wrapped within the tags while still retaining the text in the editor.
** Description: Comments tell the renderer not display the text wrapped within the tags while still retaining the text in the editor.
* '''Bold Tag'''  
* '''Bold Tag'''  
** Tag: <code><nowiki><b></b></nowiki></code>
** Tag: <code><nowiki><b></b></nowiki></code>
** Description: Text surrounded by bold tags will be '''bolded'''.
** Description: Text surrounded by bold tags will be '''bolded'''.
* '''Italic Tag'''
* '''Italic Tag'''
** Tag: <code><nowiki><i></i></nowiki></code>
** Tag: <code><nowiki><i></i></nowiki></code>
** Description: Text surrounded by italics tags will be ''italicized''.
** Description: Text surrounded by italics tags will be ''italicized''.
* '''Underline Tag'''  
* '''Underline Tag'''  
** Tag: <code><nowiki><u></u></nowiki></code>
** Tag: <code><nowiki><u></u></nowiki></code>
** Description: Text surrounded by underline tags will be <u>underlined</u>.
** Description: Text surrounded by underline tags will be <u>underlined</u>.
* '''List Tag'''  
* '''List Tag'''  
** Tag: <code><nowiki><ul><li>ITEM HERE</li></ul></nowiki></code>
** Tag: <code><nowiki><ul><li>ITEM HERE</li></ul></nowiki></code>
** Description: Creates list items with an empty square for the icon. Each list item is indented and separated by an empty line.
** Description: Creates list items with an empty square for the icon. Each list item is indented and separated by an empty line.
** Example: <code><nowiki><ul><li>Red</li><li>Green</li><li>Blue</li></ul></nowiki></code>
 
* '''Line-Break Tag'''  
* '''Line-Break Tag'''  
** Tag: <code><nowiki><br></nowiki></code>
** Tag: <code><nowiki><br></nowiki></code>
** Description: Breaks the text to the next line.  Strictly speaking, this tag isn't necessary.  You can just as easily add blank lines to the book text.
** Description: Breaks the text to the next line.  Strictly speaking, this tag isn't necessary.  You can just as easily add blank lines to the book text.
* '''Page-Break'''  
* '''Page-Break'''  
** Tag: <code>[pagebreak]</code>
** Tag: <code>[pagebreak]</code>
** Description: Breaks to the next page.  Must be on its own line.  Text automatically breaks to the next page once it reaches the end.  
** Description: Breaks to the next page.  Must be on its own line.  Text automatically breaks to the next page once it reaches the end.  
** Note: images do not, so if you notice your images running off the edge of the page, manually place a page-break or reduce the size of your image.
** Note: images do not, so if you notice your images running off the edge of the page, manually place a page-break or reduce the size of your image.
* '''Paragraph Tag'''  
* '''Paragraph Tag'''  
** Tag: <code><nowiki><p></nowiki></code>
** Tag: <code><nowiki><p></nowiki></code>
Line 56: Line 42:
*** Alignment
*** Alignment
**** Tag: <code><nowiki><p align='center'></nowiki></code>
**** Tag: <code><nowiki><p align='center'></nowiki></code>
**** Description: Aligns the surrounded text.  Valid values are 'left', 'right', 'justify', 'center'.
**** Description: Aligns the surrounded text.  Valid values are 'left', 'right', 'justify', 'center', <s>and 'chaotic evil'</s>.
**** Note: If you want to place an image within some text so that it wraps around it, the text containing the image needs to be within paragraph tags.
**** Note: If you want to place an image within some text so that it wraps around it, the text containing the image needs to be within paragraph tags.
* '''Font Tags'''
* '''Font Tags'''
** Tag: <code><nowiki><font></nowiki></code>
** Tag: <code><nowiki><font></nowiki></code>
Line 73: Line 60:
**** Tag: <code><nowiki><font alpha='#FF'></font></nowiki></code>
**** Tag: <code><nowiki><font alpha='#FF'></font></nowiki></code>
**** Description: Changes the font's transparency. Two-digit hexadecimal values from <code>'#00'</code> (fully transparent) through <code>'#FF'</code> (fully opaque) are supported.
**** Description: Changes the font's transparency. Two-digit hexadecimal values from <code>'#00'</code> (fully transparent) through <code>'#FF'</code> (fully opaque) are supported.
* '''Image tags'''
* '''Image tags'''
** Tag: <code><nowiki><img></nowiki></code>
** Tag: <code><nowiki><img></nowiki></code>
Line 86: Line 74:
**** Tag: <code><img src='img://Textures/Interface/Books/Illuminated_Letters/X_letter.png'></code>
**** Tag: <code><img src='img://Textures/Interface/Books/Illuminated_Letters/X_letter.png'></code>
**** Description: Used for adding special illuminated letters at the beginning of books. (Replace the "X" with any letter or number.)
**** Description: Used for adding special illuminated letters at the beginning of books. (Replace the "X" with any letter or number.)


==Fonts==
==Fonts==
The fonts displayed in game are stored in a [[Flash File]] font library.  
The fonts displayed in game are stored in a [[Flash Published|Flash Movie]] font library.  
These font libraries are shared between menus during runtime.
These font libraries are shared between menus during runtime.
The current font configuration can be found in ''Fallout 4\Data\Interface\FontConfig.txt''
The current font configuration can be found in ''Fallout 4\Data\Interface\FontConfig.txt''


*'''Library:'''Interface\fonts_en.swf [[File:Roboto Condensed Example.png|thumb|top|Example of the main Fallout 4 font]]
*'''Library:'''Interface\fonts_en.swf
**'''Font Class:''' $MAIN_Font
**'''Symbol:''' $MAIN_Font
**'''Font Family:''' Roboto Condensed
**'''Font Family:''' Roboto Condensed
**'''Font Style:''' Normal
**'''Font Style:''' Normal


*'''Library:'''Interface\fonts_en.swf [[File:Roboto Condensed Bold Example.png|thumb|top|Example of the main Fallout 4 font, bolded]]
*'''Library:'''Interface\fonts_en.swf
**'''Font Class:''' $MAIN_Font_Bold
**'''Symbol:''' $MAIN_Font_Bold
**'''Font Family:''' Roboto Condensed
**'''Font Family:''' Roboto Condensed
**'''Font Style:''' Bold
**'''Font Style:''' Bold


*'''Library:'''Interface\fonts_en.swf [[File:Handwritten Institute Font Example.png|thumb|top|Example of the handwritten font in Fallout 4]]
*'''Library:'''Interface\fonts_en.swf
**'''Font Class:''' $HandwrittenFont
**'''Symbol:''' $HandwrittenFont
**'''Font Family:''' Handwritten_Institute
**'''Font Family:''' Handwritten_Institute
**'''Font Style:''' Normal
**'''Font Style:''' Normal


*'''Library:'''Interface\fonts_en.swf [[File:Brody Bold Example.png|thumb|top|Example of the Brody font in Fallout 4]]
*'''Library:'''Interface\fonts_en.swf
**'''Font Class:''' $BRODY
**'''Symbol:''' $BRODY
**'''Font Family:''' "Brody"
**'''Font Family:''' "Brody"
**'''Font Style:''' Bold
**'''Font Style:''' Bold


*'''Library:'''Interface\fonts_en.swf [[File:Share-TechMono Font Example.png|thumb|top|Example of the terminal font in Fallout 4]]
*'''Library:'''Interface\fonts_en.swf
**'''Font Class:''' $Terminal_Font
**'''Symbol:''' $Terminal_Font
**'''Font Family:''' Share-TechMono
**'''Font Family:''' Share-TechMono
**'''Font Style:''' Normal
**'''Font Style:''' Normal


*'''Library:'''Interface\fonts_en.swf
*'''Library:'''Interface\fonts_en.swf
**'''Font Class:''' $Controller_Buttons
**'''Symbol:''' $Controller_Buttons
**'''Font Family:''' Controller  Buttons
**'''Font Family:''' Controller  Buttons
**'''Font Style:''' Normal
**'''Font Style:''' Normal


*'''Library:'''Interface\fonts_en.swf
*'''Library:'''Interface\fonts_en.swf
**'''Font Class:''' $Controller_Buttons_inverted
**'''Symbol:''' $Controller_Buttons_inverted
**'''Font Family:''' Controller  Buttons inverted
**'''Font Family:''' Controller  Buttons inverted
**'''Font Style:''' Normal
**'''Font Style:''' Normal


*'''Library:'''Interface\fonts_en.swf
*'''Library:'''Interface\fonts_console.swf
**'''Font Class:''' $CClub_Font
**'''Symbol:''' $ConsoleFont
**'''Font Family:''' Eurostile LT Std Roman
**'''Font Style:''' None
 
*'''Library:'''Interface\fonts_en.swf
**'''Font Class:''' $CClub_Font_Bold
**'''Font Family:''' Eurostile Cyr Std Bold
**'''Font Style:''' None
 
*'''Library:'''Interface\fonts_console.swf [[File:Arial Font Example.png|thumb|top|Example of the console font in Fallout 4]]
**'''Font Class:''' $ConsoleFont
**'''Font Family:''' Arial
**'''Font Family:''' Arial
**'''Font Style:''' Normal
**'''Font Style:''' Normal


*'''Library:'''Interface\fonts_console.swf [[File:Consolas Font Example.png|thumb|top|Example of the console debug font in Fallout 4]]
*'''Library:'''Interface\fonts_console.swf
**'''Font Class:''' $DebugTextFont
**'''Symbol:''' $DebugTextFont
**'''Font Family:''' Consolas
**'''Font Family:''' Consolas
**'''Font Style:''' Normal
**'''Font Style:''' Normal
[[Category:Game Systems]]
[[Category:User Interface]]

Please note that all contributions to the Fallout4 CreationKit Wiki are considered to be released under the Creative Commons Attribution-ShareAlike (see FalloutCK:Copyrights for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource. Do not submit copyrighted work without permission!

Cancel Editing help (opens in new window)

Template used on this page: