|
|
Line 132: |
Line 132: |
| * '''Replace with:''' <span style="background:#E9EEF6> \1\n| </span> | | * '''Replace with:''' <span style="background:#E9EEF6> \1\n| </span> |
| * '''Action:''' Click '''Replace All'''. | | * '''Action:''' Click '''Replace All'''. |
| | |
| | == Updating Existing Tables == |
| | These instructions use Notepad++'s "Replace" function with "Regular expression" search mode. There are two steps to reformat the header row and one step for the data rows. Make sure your cursor is at the beginning of the file before starting this process, or make sure the "Wrap Around" checkbox in the '''Replace''' window is checked. |
| | |
| | To edit the table in Notepad++ first copy the existing table from the FSRW using '''Edit Source''', use your cursor to highlight the table, press '''Ctrl+C''' to copy it, then create a new file in Notepad++ '''(CTRL+N)''' and paste the table '''(Ctrl+V)''' into the new file. |
| | === Reformatting the Header Row === |
| | Perform these two steps in order: |
| | |
| | ;Step 1: Change the first "!!" to "|" |
| | * '''Purpose:''' To correctly format the first header element. |
| | * '''Open Replace Dialog:''' Press Ctrl + H. |
| | * '''Search Mode:''' Select Regular expression. |
| | * '''Find what:''' <span style="background:#E9EEF6> ^! (.*?) !! </span> |
| | * '''Replace with:''' <span style="background:#E9EEF6> ! scope="col" | \1\n! scope="col" | </span> |
| | * '''Action:''' Click '''Replace All'''. |
| | |
| | ;Step 2: Break up the remaining "!!" and add "! scope="col" |" |
| | * '''Purpose:''' To format the subsequent header elements onto new lines. |
| | * '''Open Replace Dialog:''' (If not already open) Press Ctrl + H. |
| | * '''Search Mode:''' Ensure Regular expression is still selected. |
| | * '''Find what:''' <span style="background:#E9EEF6> !! </span> |
| | * '''Replace with:''' <span style="background:#E9EEF6> \n! scope="col" | </span> |
| | * '''Action:''' Click '''Replace All'''. |
| | |
| | === Reformatting Data Rows === |
| | This is a single step: |
| | * '''Purpose:''' Change each data row to add prefix text "! scope="row"", and the FSHI template with alternate text to the DGS number in the first column. |
| | *'''Open Replace Dialog:''' Press Ctrl + H. |
| | *'''Search Mode:''' Select Regular expression. |
| | *'''Find what:''' <span style="background:#E9EEF6>^\| (\d+) \|\|(.*)$ </span> |
| | * '''Replace with:''' <span style="background:#E9EEF6> ! scope="row" | <nowiki>{{FSHI|DGS=\1|alt=\1}}</nowiki>\n|\2 </span> |
| | *'''Action:''' Click '''Replace All'''. |
| | |
|
| |
|
| ==Simple Table Design== | | ==Simple Table Design== |